<html>
<head><meta charset="utf-8"><title>left-pad index · wg-secure-code · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/index.html">wg-secure-code</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html">left-pad index</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="178310852"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178310852" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178310852">(Oct 16 2019 at 17:36)</a>:</h4>
<p>So I took a stab at this: <a href="https://twitter.com/pcwalton/status/1181394377081442304" target="_blank" title="https://twitter.com/pcwalton/status/1181394377081442304">https://twitter.com/pcwalton/status/1181394377081442304</a></p>
<div class="inline-preview-twitter"><div class="twitter-tweet"><a href="https://twitter.com/pcwalton/status/1181394377081442304" target="_blank"><img class="twitter-avatar" src="https://pbs.twimg.com/profile_images/619088718/twitter-icon_normal.jpeg"></a><p>Idea: The “left-pad index”, a score for Rust crates that combines small size with popularity.

The goal would be to find potential candidates for additions to the standard library, or at least merging into larger crates.</p><span>- Patrick Walton (@pcwalton)</span></div></div>



<a name="178310869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178310869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178310869">(Oct 16 2019 at 17:36)</a>:</h4>
<p>results: <a href="https://twitter.com/bascule/status/1184523027888988160" target="_blank" title="https://twitter.com/bascule/status/1184523027888988160">https://twitter.com/bascule/status/1184523027888988160</a></p>
<div class="inline-preview-twitter"><div class="twitter-tweet"><a href="https://twitter.com/bascule/status/1184523027888988160" target="_blank"><img class="twitter-avatar" src="https://pbs.twimg.com/profile_images/450061818606522368/pjDTHFB9_normal.jpeg"></a><p><a href="https://twitter.com/pcwalton" target="_blank" title="https://twitter.com/pcwalton">@pcwalton</a> I took a stab at this, extracting info about the top 500 crates via the <a href="https://t.co/v0BPxyGjof" target="_blank" title="https://t.co/v0BPxyGjof">http://crates.io</a> API, putting it into a spreadsheet, and dividing the number of recent downloads by the crate size. Here's the top 25 crates with the highest "left-pad index"
<a href="https://t.co/NDBr3OnnGk" target="_blank" title="https://t.co/NDBr3OnnGk">https://docs.google.com/spreadsheets/d/1wwahRMHG3buvnfHjmPQFU4Kyfq15oTwbfsuZpwHUKc4/edit?usp=sharing</a> <a href="https://t.co/PJGTyNLBZl" target="_blank" title="https://t.co/PJGTyNLBZl">https://twitter.com/bascule/status/1184523027888988160/photo/1</a></p><span>- Tony "ABOLISH ICE" Arcieri (@bascule)</span><div class="twitter-image"><a href="https://t.co/PJGTyNLBZl" target="_blank" title="https://t.co/PJGTyNLBZl"><img src="https://pbs.twimg.com/media/EHBFajWUYAEqiIX.jpg:thumb"></a></div></div></div>



<a name="178314101"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178314101" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178314101">(Oct 16 2019 at 18:09)</a>:</h4>
<p>made a rust-internals thread about it as well <a href="https://internals.rust-lang.org/t/calculating-which-3rd-party-crates-are-good-candidates-for-std-inclusion-via-left-pad-index/11129" target="_blank" title="https://internals.rust-lang.org/t/calculating-which-3rd-party-crates-are-good-candidates-for-std-inclusion-via-left-pad-index/11129">https://internals.rust-lang.org/t/calculating-which-3rd-party-crates-are-good-candidates-for-std-inclusion-via-left-pad-index/11129</a></p>



<a name="178334509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178334509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178334509">(Oct 16 2019 at 22:48)</a>:</h4>
<p>nice <a href="https://twitter.com/SimonSapin/status/1184587081600983041" target="_blank" title="https://twitter.com/SimonSapin/status/1184587081600983041">https://twitter.com/SimonSapin/status/1184587081600983041</a></p>
<div class="inline-preview-twitter"><div class="twitter-tweet"><a href="https://twitter.com/SimonSapin/status/1184587081600983041" target="_blank"><img class="twitter-avatar" src="https://pbs.twimg.com/profile_images/938520268724678656/JOr5dTTT_normal.jpg"></a><p>I’m proposing (again) to add the `matches` macro to <a href="https://twitter.com/rustlang" target="_blank" title="https://twitter.com/rustlang">@rustlang</a>’s standard library, since it is number one in “left-pad index” on <a href="https://t.co/r1Pfp9zdfB" target="_blank" title="https://t.co/r1Pfp9zdfB">http://crates.io</a>
<a href="https://t.co/3zrtdRK6Zr" target="_blank" title="https://t.co/3zrtdRK6Zr">https://github.com/rust-lang/rust/pull/65479</a> <a href="https://t.co/zrkghLuaMf" target="_blank" title="https://t.co/zrkghLuaMf">https://twitter.com/bascule/status/1184523027888988160</a></p><span>- Simon Sapin (@SimonSapin)</span></div></div>



<a name="178490636"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178490636" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178490636">(Oct 18 2019 at 16:36)</a>:</h4>
<p>and another one <a href="https://github.com/rust-lang/rfcs/pull/2788" target="_blank" title="https://github.com/rust-lang/rfcs/pull/2788">https://github.com/rust-lang/rfcs/pull/2788</a></p>



<a name="178509068"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/left-pad%20index/near/178509068" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Shnatsel <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/left-pad.20index.html#178509068">(Oct 18 2019 at 20:41)</a>:</h4>
<p>Wow, a lot of that does indeed look like it could be uplifted to std</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>